<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="Generator" content="手机网" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="" />
<meta name="Description" content="" />
<title>淘机城-{$g['goods_name']}</title>
<link rel="shortcut icon" href="favicon.ico" />
<link rel="icon" href="animated_favicon.gif" type="image/gif" />
<link href="__PUBLIC__/Home/css/index.css" rel="stylesheet" type="text/css" media="screen" />
<link href="__PUBLIC__/Home/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/Home/js/common.js"></script>
</head>

<body><include file="Public/header" />

<div class="position">
    当前位置:
    <span>
        <a href="{:U('Home/Index/index')}">
            首页
        </a>
        <code>
            &gt;
        </code>

        <foreach name="mbx" item="m">
        <a href="{:U('Home/Goods/category',array('cat_id'=>$m['cat_id']))}">
            {$m['cat_name']}
        </a>
        <code>
            &gt;
        </code>
        </foreach>

        {$g['goods_name']}
    </span>
</div>
<div id="detail_body">
    <div class="detail_l">
        <div class="detail_pic">
            <a href="javascript:;" onclick="window.open('gallery.php?id=9'); return false;">
                <img src="Http://localhost/git/shop1{$g['goods_img']}" alt="{$g['goods_name']}"
                name="goods_img_id" id="goods_img_id" />
            </a>
        </div>
        <div class="detail_smallpic">


        </div>
        <div class="clear">
        </div>
    </div>
    <div class="detail_r">
        <div class="detail_rbt">
            <h1>
                {$g['goods_name']}
            </h1>
            <h2>
            </h2>
        </div>
        <ul class="detail_rul">
            <li style="width: 400px;">
                <b style="color: rgb(195, 20, 0);">
                    商品货号：{$g['goods_sn']}
                </b>
            </li>
            <li>
                商品品牌：
                <a href="brand.php?id=1">
                    诺基亚
                </a>
            </li>
            <li>
                购买此商品可使用：2200 积分
            </li>
            <div class="clear">
            </div>
        </ul>
        <div style="width: 100%; padding-top: 10px;">
            <div style="width: 260px; height: 100px; float: left; margin-top: 15px;">
                <ul style="border-bottom: medium none;">
                    <li style="width: 260px; float: left; margin-right: 10px; margin-top: 5px;">
                        市场价格：：
                        <span style="text-decoration: line-through;">
                            ￥{$g['market_price']}元
                        </span><br />
                        本店售价：：
                        <span>
                            <font color="red">￥{$g['shop_price']}元</font>
                        </span>
                    </li>
                    <li class="detail_qgl" style="margin-top: 13px;">
                        <span class="gg2">
                        </span>
                        <span class="gg3">
                        </span>
                        <span class="gg5">
                        </span>
                        <span class="gg9">
                        </span>
                        <span class="gg14">
                        </span>
                        <span class="gg15">
                        </span>
                    </li>
                </ul>
            </div>
            <div style="margin-top:30px;"><a href="#"><img src="__PUBLIC__/Home/images/member_shop.gif" onclick="checkUser();"/></a></div>
            <!--{:U('Home/Flow/add',array('goods_id'=>$g['goods_id']))}-->
        </div>

        <script type="text/javascript">
            function checkUser() {
                var cookie = document.cookie;
                //cookie是个字符串型的  判断其长度
                if(cookie.indexOf('username') == -1 ){
                    // 若cookie中没有username字段, 则走登录页面 并将goods_id带过去
                    window.location.href="{:U('Home/User/user_login',array('goods_id'=>$g['goods_id']))}";
                } else {
                    // 若cookie中有username字段,则走添加商品函数,并带goods_id去
                    window.location.href="{:U('Home/Flow/add',array('goods_id'=>$g['goods_id']))}";
                }
            }
        </script>

        <div class="clear">
        </div>
    </div>
    <div class="clear detail_body_footer">
        <div style="border: 1px solid rgb(204, 204, 204); background: transparent url(__PUBLIC__/Home/images/ad/ads03.jpg) repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 885px; height: 71px; color: rgb(102, 102, 102);">
            <ul style="padding-left: 10px;">
                <li style="padding: 5px; line-height: 20px; width: 260px; float: left;">
                    ★ 买机送金
                    <br>
                    为真情回馈广大客户的关注，网站推出清凉七月购机送金活动。开心多多，欢乐多多！
                </li>
                <li style="padding: 5px; line-height: 20px; width: 265px; float: left;">
                    ★ 全场免邮
                    <br>
                    凡在本站购物的每位顾客，都可以享受到免29元邮费的待遇，真正做到网上购物，实惠多多！
                </li>
                <li style="overflow: hidden; width: 330px; float: right; height: 71px;">
                    <img src="Http://www.zhanghuwei.com/shop1__PUBLIC__/Home/images/ads03.gif">
                </li>
            </ul>
        </div>
    </div>
</div>
<div id="detail_info">
    <div class="detail_info_l">
        <div class="detail_info_l_header">
            <ul>
                <li class="hover" onmouseover="orderView(1);" id="view_1">
                    商品描述：
                </li>
                <li class="" onmouseover="orderView(2);" id="view_2">
                    商品属性
                </li>
            </ul>
        </div>
        <div class="detail_info_l_body">
            <div style="display: block;" class="detailm_content1" id="c1">
                 {$g['goods_desc']}
            </div>
            <div class="detailm_content2" id="c2" style="display: none;">
                    
            </div>
            </div>
            <div id="ECS_COMMENT">
                <div class="det_review">
                    <form action="{:U('Home/Goods/goods',array('goods_id'=>$g['goods_id']))}" method="post" name="commentForm" id="commentForm">
                        <strong>评价/提问</strong>
                        <em>
                            已购用户如有售后问题请直接拨打客服专线4007-112-211，以便获得更加及时专业的服务
                        </em>
                        <br>
                        <textarea name="content" class="text_detreview" id="pingjia">
                        </textarea>
                        <span class="jo">
                            <input name="comment_rank" value="5" id="comment_rank5" type="hidden">
                        </span>
                        <input name="topictpl" id="topictpl" value="0" type="hidden">
                        <br>
                        <div class="det_review_r">
                            <div class="det_review_rl">
                                <a href="user.php?act=register" target="_blank">
                                    没有用户名，请注册
                                </a>
                            </div>
                            <div class="det_review_rr">
                                <span>
                                    用户名：匿名用户&nbsp; E-mail：
                                    <input name="email" id="email" maxlength="100" value="" class="text_short"
                                    type="text">
                                </span>
                                　
                                <input name="Submit" value="完 成" class="buttonred" type="submit">
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                    </form>
                </div>
                
                <if condition="comm">

                <foreach name="comm" item="v">

                    <div class="review">
                        <div class="rev_t">
                            <div class="rev_t_user"><strong>email：</strong>{$v.email}</div>
                            <div class="rev_t_time"><strong>时间：</strong>{$v.pubtime|date='Y/m/d',###}</div>
                            <div class="clear"></div>
                        </div>
                        <div class="rev_m">{$v.content}</div>
    			    </div>

                </foreach>

                <else/>

                    <div class="review">
                        暂时还没有任何用户评论
                    </div>

                </if>


                <div class="page" style="margin-top:20px;">
                    <div id="pagebar" class="f_r">
                        <form name="selectPageForm" action="/shouji/goods.php" method="get">
                            <div id="pager">
                                总计 0 个记录，共 1 页。
                                <a href="javascript:gotoPage(1,9,0)">
                                    第一页
                                </a>
                                <a href="javascript:;">
                                    上一页
                                </a>
                                <a href="javascript:;">
                                    下一页
                                </a>
                                <a href="javascript:;">
                                    最末页
                                </a>
                            </div>
                        </form>
                        <script type="Text/Javascript" language="JavaScript">
                            function selectPage(sel) {
                                sel.form.submit();
                            }
                        </script>
                    </div>
                </div>
                <div class="clear">
                </div>
            </div>
        </div>

        <div class="clear">
        </div>
    </div>

<include file="Public/footer" />

<!--<script type="text/javascript">


function orderView(id) {
	//alert('未制作');view_1
	var view_1 = $("view_1");
	var view_2 = $("view_2");
	var c1 = $("c1");
	var c2 = $("c2");
	if(id==1)
	{
		view_1.className="hover";
		view_2.className="";
		c1.style.display="block";
		c2.style.display="none";
	}
	else
	{
		view_1.className="";
		view_2.className="hover";
		c1.style.display="none";
		c2.style.display="block";
	}
};

			function img_src(val){
				$("goods_img_id").src=val;
			}
			var boxheight=81;//跟图片的实际尺寸相符
			var box=$("demo");
			var obox=$("demo1");
			var dulbox=$("demo2");
			obox.style.height=obox.getElementsByTagName("li").length*boxheight+'px';
			dulbox.style.height=obox.getElementsByTagName("li").length*boxheight+'px';
			/*box.style.height=obox.getElementsByTagName("li").length*boxheight*3+'px';*/
			var canroll = false;
			if (obox.getElementsByTagName("li").length >= 4) {
			canroll = true;
			dulbox.innerHTML=obox.innerHTML;
			}
			var step=5;temp=1;speed=10;
			var aheight=obox.offsetHeight;
			var mData=0;
			var isStop = 1;
			var dir = 1;
			function s(){
				if (!canroll) return;
					if (dir) {
						if((aheight+mData)>=0){
						mData=mData-step;
						}
						else{
							mData=-step;
						}
					}
					else{
						if(mData>=0){
							mData=-aheight;
						}
						else{
							mData+=step;
						}
					}
					obox.style.marginTop=mData+"px";
					if (isStop) return;
					setTimeout(s,speed)
				}
			function moveLeft() {
				var wasStop = isStop;
				dir = 1;
				speed = 50;
				isStop=0;
				if (wasStop) {
					setTimeout(s,speed);
				}
			}
			function moveRight() {
				var wasStop = isStop;
				dir = 0;
				speed = 50;
				isStop=0;
				if (wasStop) {
					setTimeout(s,speed);
				}
			}
			function scrollStop() {
				isStop=1;
			}
			function clickLeft() {
				var wasStop = isStop;
				dir = 1;
				speed = 25;
				isStop=0;
				if (wasStop) {
					setTimeout(s,speed);
				}
			}
			function clickRight() {
				var wasStop = isStop;
				dir = 0;
				speed = 25;
				isStop=0;
				if (wasStop) {
					setTimeout(s,speed);
				}
			}
		</script>-->
</body>
</html>